package com.woniu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniu.dao.RegisterbookMapper;
import com.woniu.pojo.Registerbook;
import com.woniu.service.RegisterBookService;
@Service
public class RegisterbookServiceImpl implements RegisterBookService{
	@Autowired
	private RegisterbookMapper registerbookMapper;
	@Override
	public List<Registerbook> getAllRegisterBook() {
		// TODO Auto-generated method stub
		return registerbookMapper.getAllRegisterBook();
	}
	@Override
	public void addRegisterbook(Registerbook registerbook) {
		// TODO Auto-generated method stub
		registerbookMapper.addRegisterbook(registerbook);
	}
	@Override
	public void deleteRegisterbookById(Integer rb_id) {
		// TODO Auto-generated method stub
		registerbookMapper.deleteregisterbookById(rb_id);
	}
	@Override
	public void deleteRegisterbooksById(String rb_ids) {
		// TODO Auto-generated method stub
		registerbookMapper.deleteregisterbooksById(rb_ids);
	}
	@Override
	public Registerbook getUpdateRegisterBookInfo(Integer rb_id) {
		// TODO Auto-generated method stub
		return registerbookMapper.selectRegisterbookById(rb_id);
	}
	@Override
	public void updateRegisterBook(Registerbook registerbook) {
		// TODO Auto-generated method stub
		registerbookMapper.updateRegisterBook(registerbook);
	}

	@Override
	public List<Registerbook> getAllRegisterBookByCondition(String user_name, String registerBook_id, String pp_id) {
		// TODO Auto-generated method stub
		return registerbookMapper.getAllRegisterBookByCondition(user_name,registerBook_id,pp_id);
	}

}
